\hypertarget{classWorldElement}{
\section{WorldElement Class Reference}
\label{classWorldElement}\index{WorldElement@{WorldElement}}
}


\hyperlink{classLevel}{Level} elements.  


{\ttfamily \#include $<$WorldElement.h$>$}Inheritance diagram for WorldElement::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.54545cm]{classWorldElement}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classWorldElement_a33af28b392e681b405a502f9cc143bcd}{WorldElement} (int x, int y, int w, int h, std::string, std::string, std::string, \hyperlink{classLevel}{Level} \&)
\item 
\hypertarget{classWorldElement_a1fa36852afeae6c43863bbc5520f9f5d}{
int {\bfseries getX} ()}
\label{classWorldElement_a1fa36852afeae6c43863bbc5520f9f5d}

\item 
\hypertarget{classWorldElement_a9b29e364fd0e8c30c331ce688616e936}{
int {\bfseries getY} ()}
\label{classWorldElement_a9b29e364fd0e8c30c331ce688616e936}

\item 
\hypertarget{classWorldElement_a58ba5f1db3dfa32982cedc1a0777601a}{
int {\bfseries getWidth} ()}
\label{classWorldElement_a58ba5f1db3dfa32982cedc1a0777601a}

\item 
\hypertarget{classWorldElement_a4f2456415ac21024a3c468aa1833abb4}{
int {\bfseries getHeight} ()}
\label{classWorldElement_a4f2456415ac21024a3c468aa1833abb4}

\item 
\hypertarget{classWorldElement_ae386438d5067ae30d1c354f3c0472cf5}{
std::string {\bfseries getColor} ()}
\label{classWorldElement_ae386438d5067ae30d1c354f3c0472cf5}

\item 
\hypertarget{classWorldElement_a4d5ec8f863245a4689edaa90e86f28f3}{
virtual void {\bfseries move} ()}
\label{classWorldElement_a4d5ec8f863245a4689edaa90e86f28f3}

\item 
void \hyperlink{classWorldElement_a64f052dba6615d61bb277365a0e5c409}{setVelocityX} (double)
\item 
\hypertarget{classWorldElement_a60d9df54e0cccc1664d6b2fdf5219eee}{
double {\bfseries getVelocityY} ()}
\label{classWorldElement_a60d9df54e0cccc1664d6b2fdf5219eee}

\item 
\hypertarget{classWorldElement_a17875031e32f7fe7543b2d157fd06ef2}{
void {\bfseries setVisible} (bool)}
\label{classWorldElement_a17875031e32f7fe7543b2d157fd06ef2}

\item 
\hypertarget{classWorldElement_a242b52a08bc745b8b9252f44ef594659}{
bool {\bfseries isVisible} ()}
\label{classWorldElement_a242b52a08bc745b8b9252f44ef594659}

\item 
\hypertarget{classWorldElement_aa6bc2d6e4f2ec2e3e7e82f3f723728da}{
double {\bfseries round} (double)}
\label{classWorldElement_aa6bc2d6e4f2ec2e3e7e82f3f723728da}

\item 
\hypertarget{classWorldElement_ae3bf54cadd21b4b072f0ff00923db6fd}{
std::string {\bfseries getType} ()}
\label{classWorldElement_ae3bf54cadd21b4b072f0ff00923db6fd}

\item 
\hypertarget{classWorldElement_ad1a1c7925b4219c08c2beb6ebb796a9f}{
std::string {\bfseries getImage} ()}
\label{classWorldElement_ad1a1c7925b4219c08c2beb6ebb796a9f}

\item 
\hypertarget{classWorldElement_ad892f2aec665b9545cb9d08982bfd439}{
virtual int {\bfseries getDirection} ()}
\label{classWorldElement_ad892f2aec665b9545cb9d08982bfd439}

\item 
\hypertarget{classWorldElement_a4f1af7fafb4812b317cca62f45f73cca}{
virtual bool {\bfseries getIsAbleToJump} ()}
\label{classWorldElement_a4f1af7fafb4812b317cca62f45f73cca}

\item 
\hypertarget{classWorldElement_ac72d304babeee00aa7f65cee7f6f99dd}{
virtual double {\bfseries getJumpingForce} ()}
\label{classWorldElement_ac72d304babeee00aa7f65cee7f6f99dd}

\item 
\hypertarget{classWorldElement_a6072da3bb6d2ad8413e66febc78cf1c6}{
bool {\bfseries getIsImmortal} ()}
\label{classWorldElement_a6072da3bb6d2ad8413e66febc78cf1c6}

\item 
\hypertarget{classWorldElement_a79a9bca645ed404bd194f2a8c1e302c0}{
void {\bfseries setIsImmortal} (bool)}
\label{classWorldElement_a79a9bca645ed404bd194f2a8c1e302c0}

\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classWorldElement_af31e79a9cb76f50c2f259d21851c5c80}{
int {\bfseries posX}}
\label{classWorldElement_af31e79a9cb76f50c2f259d21851c5c80}

\item 
\hypertarget{classWorldElement_ac08589dd50c2c845f09c401fc1949cef}{
int {\bfseries posY}}
\label{classWorldElement_ac08589dd50c2c845f09c401fc1949cef}

\item 
\hypertarget{classWorldElement_ab880bf3562dd510386fb42421d1cb090}{
int {\bfseries width}}
\label{classWorldElement_ab880bf3562dd510386fb42421d1cb090}

\item 
\hypertarget{classWorldElement_a42cbe1e0a9e835032ec6ac3f88d2ebd5}{
int {\bfseries height}}
\label{classWorldElement_a42cbe1e0a9e835032ec6ac3f88d2ebd5}

\item 
\hypertarget{classWorldElement_ab39a6657cac9ceb1564721586adbb832}{
double {\bfseries velocityX}}
\label{classWorldElement_ab39a6657cac9ceb1564721586adbb832}

\item 
\hypertarget{classWorldElement_a1dff1385510d90b7206b971973ca0381}{
double {\bfseries velocityY}}
\label{classWorldElement_a1dff1385510d90b7206b971973ca0381}

\item 
\hypertarget{classWorldElement_a6a7c5e750589800bbad8996c8dfdcb28}{
std::string {\bfseries color}}
\label{classWorldElement_a6a7c5e750589800bbad8996c8dfdcb28}

\item 
\hypertarget{classWorldElement_afedeeb03a3fee1aa749b27296b455394}{
std::string {\bfseries type}}
\label{classWorldElement_afedeeb03a3fee1aa749b27296b455394}

\item 
\hypertarget{classWorldElement_af26f8b7769f706ba6f824668a43a8e61}{
std::string {\bfseries image}}
\label{classWorldElement_af26f8b7769f706ba6f824668a43a8e61}

\item 
\hypertarget{classWorldElement_a2a679a5790d2aeb1ebd377b5c033be3b}{
\hyperlink{classLevel}{Level} $\ast$ {\bfseries level}}
\label{classWorldElement_a2a679a5790d2aeb1ebd377b5c033be3b}

\item 
\hypertarget{classWorldElement_a7c162afeb06255d5959bf568458718c5}{
int {\bfseries direction}}
\label{classWorldElement_a7c162afeb06255d5959bf568458718c5}

\item 
\hypertarget{classWorldElement_a94b627737eeecc2f933392886cd4d728}{
bool {\bfseries isImmortal}}
\label{classWorldElement_a94b627737eeecc2f933392886cd4d728}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{classLevel}{Level} elements. This class is a very general representation of all the possible elements inside a level. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classWorldElement_a33af28b392e681b405a502f9cc143bcd}{
\index{WorldElement@{WorldElement}!WorldElement@{WorldElement}}
\index{WorldElement@{WorldElement}!WorldElement@{WorldElement}}
\subsubsection[{WorldElement}]{\setlength{\rightskip}{0pt plus 5cm}WorldElement::WorldElement (int {\em x}, \/  int {\em y}, \/  int {\em w}, \/  int {\em h}, \/  std::string {\em c}, \/  std::string {\em type}, \/  std::string {\em image}, \/  {\bf Level} \& {\em l})}}
\label{classWorldElement_a33af28b392e681b405a502f9cc143bcd}
Create a new \hyperlink{classWorldElement}{WorldElement} by specifying its position, size, color and level inwhich it is contained. 

\subsection{Member Function Documentation}
\hypertarget{classWorldElement_a64f052dba6615d61bb277365a0e5c409}{
\index{WorldElement@{WorldElement}!setVelocityX@{setVelocityX}}
\index{setVelocityX@{setVelocityX}!WorldElement@{WorldElement}}
\subsubsection[{setVelocityX}]{\setlength{\rightskip}{0pt plus 5cm}void WorldElement::setVelocityX (double {\em velX})}}
\label{classWorldElement_a64f052dba6615d61bb277365a0e5c409}
It sets the amount of pixels that the element moves on the x axis, and as collateral event the direction is set correctly, if the player stops the direction will remain the last one 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
WorldElement.h\item 
WorldElement.cpp\end{DoxyCompactItemize}
